
/**
 * Handle changed data.
 *
 * @param {Number} oldValue old value
 * @param {Number} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"8543C2A5-1C2B-44D8-A890-9B90F520F0B6"}
 */
function onDataChange_tipo(oldValue, newValue, event) 
{
	if (tipo == scopes.globals.zconf_lista)
		elements.nombre_valuelist.enabled = true;
	else
		elements.nombre_valuelist.enabled = false;
	return true;
}

/**
 * Handle record selected.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"558E9367-5FC4-4330-8C8E-33350EAA9AF8"}
 */
function onRecordSelection(event) 
{
	if (tipo == scopes.globals.zconf_lista)
		elements.nombre_valuelist.enabled = true;
	else
		elements.nombre_valuelist.enabled = false;
	return true;
}
